from django.shortcuts import render

# Create your dashboard here.


def dashboard(request):
    # 获取用户名
    username = request.COOKIES.get('user_name')
    # 渲染首页
    context = {
        'username': username
    }
    print('dashboard')
    return render(request, 'index2.html', context=context)
